package es.index.document.logs.squid;

import java.util.Date;

import es.index.document.Logs;

public class SquidStoreLog extends Logs {

	/**
	 * 时间戳
	 */
	private Date _date = null;

	/**
	 * 动作
	 */
	private String _action = "";

	/**
	 * 目录号
	 */
	private String _catalogNO = "";

	/**
	 * 文件号
	 */
	private long _fileNO = 0;

	/**
	 * cache关键字
	 */
	private String _cacheKeyword = "";

	/**
	 * 状态码
	 */
	private int _statusCode = 0;

	/**
	 * 日期， 该日期用long表示是因为可能出现-1的情况
	 */
	private long _dateOf = -1;

	/**
	 * 最后修改时间， 该日期用long表示是因为可能出现-1的情况
	 */
	private long _lastDate = -1;

	/**
	 * 过期时间， 该日期用long表示是因为可能出现-1的情况
	 */
	private long _expirationDate = -1;

	/**
	 * 内容类型
	 */
	private String _contentType = "";

	/**
	 * 内容长度/大小
	 */
	private int _contentLength = 0;

	/**
	 * 内容大小
	 */
	private int _contentSize = 0;

	/**
	 * 方式
	 */
	private String _way = "";

	/**
	 * URI
	 */
	private String _uri = "";

	public Date get_date() {
		return _date;
	}

	public void set_date(Date _date) {
		this._date = _date;
	}

	public String get_action() {
		return _action;
	}

	public void set_action(String _action) {
		this._action = _action;
	}

	public String get_catalogNO() {
		return _catalogNO;
	}

	public void set_catalogNO(String _catalogNO) {
		this._catalogNO = _catalogNO;
	}

	public long get_fileNO() {
		return _fileNO;
	}

	public void set_fileNO(long _fileNO) {
		this._fileNO = _fileNO;
	}

	public String get_cacheKeyword() {
		return _cacheKeyword;
	}

	public void set_cacheKeyword(String _cacheKeyword) {
		this._cacheKeyword = _cacheKeyword;
	}

	public int get_statusCode() {
		return _statusCode;
	}

	public void set_statusCode(int _statusCode) {
		this._statusCode = _statusCode;
	}

	public long get_dateOf() {
		return _dateOf;
	}

	public void set_dateOf(long _dateOf) {
		this._dateOf = _dateOf;
	}

	public long get_lastDate() {
		return _lastDate;
	}

	public void set_lastDate(long _lastDate) {
		this._lastDate = _lastDate;
	}

	public long get_expirationDate() {
		return _expirationDate;
	}

	public void set_expirationDate(long _expirationDate) {
		this._expirationDate = _expirationDate;
	}

	public String get_contentType() {
		return _contentType;
	}

	public void set_contentType(String _contentType) {
		this._contentType = _contentType;
	}

	public int get_contentLength() {
		return _contentLength;
	}

	public void set_contentLength(int _contentLength) {
		this._contentLength = _contentLength;
	}

	public int get_contentSize() {
		return _contentSize;
	}

	public void set_contentSize(int _contentSize) {
		this._contentSize = _contentSize;
	}

	public String get_way() {
		return _way;
	}

	public void set_way(String _way) {
		this._way = _way;
	}

	public String get_uri() {
		return _uri;
	}

	public void set_uri(String _uri) {
		this._uri = _uri;
	}

	public SquidStoreLog() {
	}

	public SquidStoreLog(String id, String fileName) {
		super(id, fileName);
	}

	public SquidStoreLog(String id, String fileName, Date date, String action,
			String catalogNO, long fileNO, String cacheKeyword, int statusCode,
			long dateOf, long lastDate, long expirationDate,
			String contentType, int contentLength, int contentSize, String way,
			String uri) {
		super(id, fileName);

		_date = date;
		_action = action;
		_catalogNO = catalogNO;
		_fileNO = fileNO;
		_cacheKeyword = cacheKeyword;
		_statusCode = statusCode;
		_dateOf = dateOf;
		_lastDate = lastDate;
		_expirationDate = expirationDate;
		_contentType = contentType;
		_contentLength = contentLength;
		_contentSize = contentSize;
		_way = way;
		_uri = uri;
	}
}
